<html>
	{% include "../common_head.html" %}
	<body>
	{% include "../common_menus.html" %}
	
	
	<div id="content">
	
		<div id="rakontu_form_style" class="rakontu_form">
		<form action="/{{dir_visit}}/{{url_profile}}?{{rakontu.urlQuery}}" method="post" enctype="multipart/form-data">
		
		{% if changes_saved %}
			<div class="message">{{template_changes_saved}}</div>
		{% endif %}
		
		{% if member.isOnlineMember %}
			<h3>{{template_your_profile}}</h3>
		{% else %}
			<h3>{{template_offline_member_profile}}</h3>
		{% endif %}
		<fieldset>
		{% if member.isOnlineMember %}
			<p>{{template_your_nickname_is}} <b>{{member.nickname}}</b> -
			<a href="/{{dir_visit}}/{{url_nickname}}?{{rakontu.urlQuery}}">{{template_change}}</a>
			{{"changing_nicknames"|caution}}</p>
		{% else %}
			<p>{{template_offline_members_nickname_is}} <b>{{member.nickname}}</b> -
			<a href="/{{dir_visit}}/{{url_nickname}}?{{member.urlQuery}}">{{template_change}}</a>
			{{"changing_offline_member_nicknames"|caution}} </p>
		{% endif %}
		
		<p>{{template_nudge_points_accumulated}}: {{accumulated_nudge_points}}</p>
		
		{% if member.isOnlineMember %}
			<p>{{template_describe_yourself}}</p>
		{% else %}
			<p>{{template_describe_offline_member}}</p>
		{% endif %}
				<table style="width:100%; border:none">
				<tr><td class="noborder">
				<textarea name="profileText" rows="10" cols="60">{{member.profileText}}</textarea>
				</td><td class="noborder" width="80">
				<p>{{template_interpret_as}} {{"interpreting_texts"|tip}}</p>
					<select name="profileText_format">
					{% for i in text_formats|makeRangeFromListLength %}
						<option value="{{text_formats|listLookup:i}}" 
							{% if text_formats|listLookup:i|equalTest:member.profileText_format %}
								selected="selected"
							{% endif %}
						>{{text_formats_display|listLookup:i}}</option>
					{% endfor %}
					</select>
				</td></tr></table>

		{% if member.isOnlineMember %}
			<p>{{template_please_add_a_picture}} {{"member_image"|tip}}
		{% else %}
			<p>{{template_please_add_a_picture_of_offline_member}} {{"offline_member_image"|tip}}
		{% endif %}
		{{"uploading_files"|caution}}</p>
      	<table border="0" cellpadding="4" cellspacing="0">
      	<tr>
      		<th>{{template_picture}}</th>
      		<th>{% if member.profileImage %} {{template_replace}} {% else %} {{template_attach}} {% endif %}</th>
      		<th>{{template_remove}}?</th>
      	</tr>
      	<tr>
			<td>{% if member.profileImage %}
					{{member.imageEmbed}}
				{% else %}
					{{term_none}}
				{% endif %}
				</td>
			<td><input type="file" name="img" size="40" accept="jpg/png"/></td>
			<td>{% if member.profileImage %}
					<input type="checkbox" name="removeProfileImage" value="yes" id="removeProfileImage">
					<label for="removeProfileImage">{{template_remove}}</label>{% else %}&nbsp; 
				{% endif %}</td>
		</tr>
		</table>
		</fieldset>
		
  		{% if questions %}
			{% include "../common_questions.html" %}
		{% endif %}

      	<p>
    <center><input type="submit" name="changeSettings|{{member.key}}" value="{{button_save_changes}}" class="button"></center>
	</form>	
	</div>
	</div>
	{% include "../common_footer.html" %}
	</body>
</html>
